
function $(selector){
	return document.querySelectorAll(selector);
}

/**查看所有商品**/
var channel_more = $(".channel-more")[0],
    more_box = $(".more-box")[0];


function  moreBox(){
	var num = true;
	channel_more.addEventListener("click",function(){
		if(num){
			more_box.classList.add("more-box-active");
			num = false;
		}else{
			more_box.classList.remove("more-box-active");
			num = true;
		}
	});
}
moreBox();
	
